Ext.define('ExtJs.view.system.module.SystemTree',{
	extend:'Ext.tree.Panel',
	title:'<center>栏目管理</center>',
	border:false,
	id:'systemTree',
	iconCls:'application_side_list',
	alias : 'widget.systemTree',
	//store: 'system.module.SystemTreeStore',
	
	initComponent: function() {
		var moduleTree = this;
		Ext.apply(this, {
			store: 'system.module.SystemTreeStore',
			dockedItems: [{
				dock: 'top',
				xtype: 'toolbar',
				layout:'column',
				border: false,
				items: [{
					iconCls:'arrow_out',
					columnWidth: 1/3,
					text: '展开',
					handler:function(){
						moduleTree.expandAll();
					}
				}, {
					columnWidth: 1/3,
					iconCls:'arrow_in',
					text: '缩起',
					handler:function(){
						moduleTree.collapseAll();
					}
				}, {
					columnWidth: 1/3,
					iconCls:'arrow_refresh',
					text: '刷新',
					handler:function(){
						moduleTree.store.load();
					}
				}]
			}]
		});
		
		this.callParent(arguments);
	}
});